<template>
  <div id="goods-item">
    <img class="item-img" :src="goodsInfo.picUrl" alt="">
    <span class="item-title">{{goodsInfo.name}}</span>
    <span class="item-price">￥{{goodsInfo.retailPrice}}</span>
  </div>
</template>

<script>
export default {
  name: 'GoodsItem',
  data() {
    return {

    }
  },
  props: {
    goodsInfo: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  components: {

  },
  methods: {

  },
  created() {

  },
  mounted() {

  }
}
</script>

<style lang="less" scoped>

#goods-item {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  .item-img {
    width: 157px;
    height: 165px;
  }
  .item-title {
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
  .item-price {
    font-size: 14px;
    color: #D43737;
    font-weight: bolder;
  }
}
</style>

